<?php
$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'资迅管理'=>array($this->pre_module_url.'/news/admin'),
	'推荐位管理'=>array('newsrecommend'),
	'创建推荐位'
);
?>

<div class="recommend_box">
				<?php $form=$this->beginWidget('CActiveForm', array(
                    'id'=>'positions-form',
                    'enableAjaxValidation'=>false,
                )); ?>
                <?php 
					$value = $model->isNewRecord ? Yii::app()->request->getParam('id') : $model->zna_id; 
					echo $form->hiddenField($model,'zna_id',array('value'=>$value));?>
                <?php if($model->isNewRecord){?>
            		<div class="hd mem_bgx">添加推荐位</div>
                <?php }else{?>
            		<div class="hd mem_bgx">编辑推荐位</div>
                <?php }?>
                    <ul class="form_list">
                        <li>
                            <span class="tit"><?php echo $form->label($model,'zpo_type'); ?>：</span>
                            <?php echo $form->dropDownList($model,'zpo_type',array(2=>'资讯'),array('class'=>'t_ipt w_190','style'=>'height:26px','maxlength'=>'20')); ?>
                        </li>
                        <li>
                            <span class="tit"><?php echo $form->labelEx($model,'zpo_title'); ?>：</span>
                            <?php echo $form->textField($model,'zpo_title',array('class'=>'t_ipt w_190','maxlength'=>'20')); ?>
                        </li>
                        <li>
                            <span class="tit"><?php echo $form->labelEx($model,'zpo_maxnum'); ?>：</span>
                            <?php echo $form->textField($model,'zpo_maxnum',array('class'=>'t_ipt w_40','maxlength'=>'20')); ?>
                        </li>
                    </ul>
                    <div class="submit"><input class="mem_btn mem_btn18" type="submit" name="" value="保 存" /><input class="mem_btn mem_btn07" onclick="self.history.back();" type="button" name="" value="取 消" /></div>
				<?php $this->endWidget(); ?>
            </div>
<script type="text/javascript">
$(function(){
	$('#subList').Managenav();
});
</script>